package com.ruoyi.adopt.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 近况对象 ad_recent_situation
 *
 * @author shilling
 * @date 2022-04-08
 */
public class RecentSituation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 宠物近况表主键 */
    private Long recentSituationId;

    /** 宠物id */
    @Excel(name = "宠物id")
    private Long petId;

    /** 宠物姓名 */
    @Excel(name = "宠物姓名")
    private String petName;

    /** 宠物照片 */
    @Excel(name = "宠物照片")
    private String petPhoto;

    public String getPetDescription() {
        return petDescription;
    }

    public void setPetDescription(String petDescription) {
        this.petDescription = petDescription;
    }

    /** 描述信息 */
    @Excel(name = "描述信息")
    private String petDescription;

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;


    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

    public void setRecentSituationId(Long recentSituationId)
    {
        this.recentSituationId = recentSituationId;
    }

    public Long getRecentSituationId()
    {
        return recentSituationId;
    }
    public void setPetId(Long petId)
    {
        this.petId = petId;
    }

    public Long getPetId()
    {
        return petId;
    }
    public void setPetName(String petName)
    {
        this.petName = petName;
    }

    public String getPetName()
    {
        return petName;
    }
    public void setPetPhoto(String petPhoto)
    {
        this.petPhoto = petPhoto;
    }

    public String getPetPhoto()
    {
        return petPhoto;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recentSituationId", getRecentSituationId())
            .append("petId", getPetId())
            .append("petName", getPetName())
            .append("petPhoto", getPetPhoto())
            .append("petDescription", getPetDescription())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
